package com.arpa.wms.mapper;


import com.arpa.wms.domain.dto.DiyReportDTO;
import com.arpa.wms.domain.entity.DiyReport;
import com.arpa.wms.domain.vo.DiyReportVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 自定义报表 Mapper 接口
 * </p>
 *
 * @author wangyujie
 * @since 2020-01-14
 */
public interface DiyReportMapper extends BaseMapper<DiyReport> {

    /**
     * 查询列表
     * @param diyReportDTO
     * @return
     */
    List<DiyReportVO> queryList(DiyReportDTO diyReportDTO);

    /**
     * 查询合计,包含总数
     * @param diyReportDTO
     * @return
     */
    DiyReportVO queryListSum(DiyReportDTO diyReportDTO);



    /**
     * 库存明细自定义报表
     * @param queryMap
     * @return
     */
    Map<String, Object> inventoryReportSum(Map<String, Object> queryMap);

    /**
     * 库存明细自定义报表记录数
     * @param queryMap
     * @return
     */
    List<Map<String, Object>> inventoryReport(Map<String, Object> queryMap);

    /**
     * 入库流水自定义报表
     * @param queryMap
     * @return
     */
    Map<String, Object> inboundReportSum(Map<String, Object> queryMap);

    /**
     * 入库流水自定义报表记录数
     * @param queryMap
     * @return
     */
    List<Map<String, Object>> inboundReport(Map<String, Object> queryMap);
    /**
     * 入库流水自定义报表
     * @param queryMap
     * @return
     */
    Map<String, Object> outboundReportSum(Map<String, Object> queryMap);

    /**
     * 入库流水自定义报表记录数
     * @param queryMap
     * @return
     */
    List<Map<String, Object>> outboundReport(Map<String, Object> queryMap);
}
